--[[

        skill_strategy.lua
        exported by excel2lua.py
        from file:skill_strategy.xlsx

--]]

local _data = {
  [1] = {id = 1,hurt = 'simple',hurt_ratio = 1.2,buff = 1,probability = 30,},
  [2] = {id = 2,hurt = 'element',hurt_ratio = 0.9,buff = 1,probability = 20,},
  [3] = {id = 3,hurt = 'element',hurt_ratio = 1.5,buff = 3,probability = 20,},
  [4] = {id = 4,hurt = 'element',hurt_ratio = 0.7,buff = 3,probability = 30,},
  [5] = {id = 5,hurt = 'element',hurt_ratio = 2.0,buff = 5,probability = 20,},
  [6] = {id = 6,hurt = 'element',hurt_ratio = 1.3,buff = 5,probability = 20,},
  [7] = {id = 7,hurt = 'element',hurt_ratio = 1.3,buff = 8,probability = 10,},
  [8] = {id = 8,hurt = 'treatment',hurt_ratio = 1.3,buff = 7,probability = 20,},
  [9] = {id = 9,hurt = 'counterattack',hurt_ratio = 0.4,buff = 0,probability = 0,},
}

local id_to_index={
   [1] = 1,
   [2] = 2,
   [3] = 3,
   [4] = 4,
   [5] = 5,
   [6] = 6,
   [7] = 7,
   [8] = 8,
   [9] = 9,
}

local skill_strategy={}

function skill_strategy.length() 
   return #_data 
end 

function skill_strategy.indexOf(index) 
   return _data[index] 
end 

function skill_strategy.get(id) 
  return skill_strategy.indexOf(id_to_index[id])
end 

return skill_strategy